<template>
	<view class="content">
		<!-- 顶部导航栏 -->
		<view>
			<u-navbar title="模型详情" height="120rpx" leftText="返回" @leftClick="gotoBack" :autoBack="true">
			</u-navbar>
		</view>
		<!-- 模型渲染 -->
		<view>
			<model-render :modelUrl="modelUrl"></model-render>
		</view>

	</view>
</template>

<script>
	// #ifdef APP || H5
	import modelRender from '@/components/model-render/model-render.vue'
	// #endif
	// #ifdef MP-WEIXIN
	import modelRender from '@/components/model-render/model-render-mini.vue'
	// #endif
	

	export default {
		name: "",
		components: {
			modelRender
		},
		data() {
			return {
				modelUrl: "",
			};
		},
		onLoad: function(option) {
			this.modelUrl = option.modelUrl;
		},
		mounted() {

		},
		create() {

		},
		methods: {
			gotoBack() {
				uni.switchTab({
					url: '/pages/home/home'
				});
			},
		},
	}
</script>

<style scoped>
	.content {
	}
</style>